<?php js_validate();?>
<form id="form-validated" class="input" action="<?php echo $own_links;?>save" method="post">
		<input type="hidden" name="dept_id" id="dept_id" value="<?php echo isset($val->dept_id)?$val->dept_id:'';?>" />
		<table class="table-form">
			<tr>
				<td>Kode Departemen</td>
				<td><input type="text" id="dept_code" name="dept_code" class="validate[required,ajax[ajaxDept]]"size="10" value="<?php echo isset($val->dept_code)?$val->dept_code:'';?>" /></td>
			</tr>
			<tr>
				<td>Nama Departemen</td>
				<td><input type="text" id="dept_name" name="dept_name" class="validate[required,custom[email]]"size="50" value="<?php echo isset($val->dept_name)?$val->dept_name:'';?>" /></td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><input type="reset" onclick="document.location='<?php echo $own_links;?>'" class="btnbatal" value="Batal" /></td>
				<td align="right"><input type="submit" class="btnsimpan" value="Simpan" /></td>
			</tr>
		</table>
	</form>